EditHeadship = function() {
	return {
		saveHeadship : function() {
			$('#fm').form('submit', {
				url      : "/pc/headship/ediHeadship.htm",
				onSubmit : function() {
					return $("#fm").form("validate");
				},
				success  : function(data) {
					if ('1' == data) {
						Ict.info("更新成功!", function() {
							Ict.closeWin();
							$('#headshipDataGrid').datagrid('reload');
						});
					} else if('2' == data) {
						Ict.warn("该岗位已存在,请确认!");
					} else {
						Ict.error("更新失败,请稍后重试!");
					}
				}
			});
		}
	};
}();